/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.*;

/**
 *
 * @author Pedro
 */
@Entity
@DiscriminatorValue("Veterinarian")
public class Veterinarian extends Person{  
    private String focusOfPractice;
    private String specialites;
    private int salary;
    private String graduatedAt;
    @OneToMany(mappedBy="Veterinarian")
    private List<Appointment> appointments = new ArrayList<>();
    
    public Veterinarian()
    {}
    public Veterinarian(String name, String lastName, String ssn, Date birthDate, String birthPlace, String focusOfPractice, String spec, int salary, String graduatedAt){
        super(name, lastName, ssn, birthDate, birthPlace);
        this.focusOfPractice=focusOfPractice;
        this.specialites = spec;
        this.salary = salary;
        this.graduatedAt = graduatedAt;        
    }
    public Veterinarian(List<Appointment> appointments){
        this.appointments = appointments;
    }

    public String getFocusOfPractice() {
        return focusOfPractice;
    }

    public void setFocusOfPractice(String focusOfPractice) {
        this.focusOfPractice = focusOfPractice;
    }

    public String getSpecialites() {
        return specialites;
    }

    public void setSpecialites(String specialites) {
        this.specialites = specialites;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public String getGraduatedAt() {
        return graduatedAt;
    }

    public void setGraduatedAt(String graduatedAt) {
        this.graduatedAt = graduatedAt;
    }

    public void setAppointments(List<Appointment> appointments) {
        this.appointments = appointments;
    }

    public List<Appointment> getAppointments() {
        return appointments;
    }

    @Override
    public void setBirthDate(Date birthDate) {
        super.setBirthDate(birthDate); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Date getBirthDate() {
        return super.getBirthDate(); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setBirthPlace(String birthPlace) {
        super.setBirthPlace(birthPlace); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String getBirthPlace() {
        return super.getBirthPlace(); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Long getId() {
        return super.getId(); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setLastName(String lastName) {
        super.setLastName(lastName); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String getLastName() {
        return super.getLastName(); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setName(String name) {
        super.setName(name); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String getName() {
        return super.getName(); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setSSN(String SSN) {
        super.setSSN(SSN); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String getSSN() {
        return super.getSSN(); //To change body of generated methods, choose Tools | Templates.
    }
    
    
    
}
